package com.ruoyi.openDoor.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.openDoor.mapper.BusinessImgMapper;
import com.ruoyi.openDoor.domain.BusinessImg;
import com.ruoyi.openDoor.service.IBusinessImgService;

/**
 * 商家的图片介绍Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-06
 */
@Service
public class BusinessImgServiceImpl implements IBusinessImgService 
{
    @Autowired
    private BusinessImgMapper businessImgMapper;

    /**
     * 查询商家的图片介绍
     * 
     * @param id 商家的图片介绍主键
     * @return 商家的图片介绍
     */
    @Override
    public BusinessImg selectBusinessImgById(Long id)
    {
        return businessImgMapper.selectBusinessImgById(id);
    }

    /**
     * 查询商家的图片介绍列表
     * 
     * @param businessImg 商家的图片介绍
     * @return 商家的图片介绍
     */
    @Override
    public List<BusinessImg> selectBusinessImgList(BusinessImg businessImg)
    {
        return businessImgMapper.selectBusinessImgList(businessImg);
    }

    /**
     * 新增商家的图片介绍
     * 
     * @param businessImg 商家的图片介绍
     * @return 结果
     */
    @Override
    public int insertBusinessImg(BusinessImg businessImg)
    {
        return businessImgMapper.insertBusinessImg(businessImg);
    }

    /**
     * 修改商家的图片介绍
     * 
     * @param businessImg 商家的图片介绍
     * @return 结果
     */
    @Override
    public int updateBusinessImg(BusinessImg businessImg)
    {
        return businessImgMapper.updateBusinessImg(businessImg);
    }

    /**
     * 批量删除商家的图片介绍
     * 
     * @param ids 需要删除的商家的图片介绍主键
     * @return 结果
     */
    @Override
    public int deleteBusinessImgByIds(Long[] ids)
    {
        return businessImgMapper.deleteBusinessImgByIds(ids);
    }

    /**
     * 删除商家的图片介绍信息
     * 
     * @param id 商家的图片介绍主键
     * @return 结果
     */
    @Override
    public int deleteBusinessImgById(Long id)
    {
        return businessImgMapper.deleteBusinessImgById(id);
    }
}
